<script setup lang="ts">
import CommonConfig from "./CommonConfig.vue";
import type { FormDesignerComponents } from "../FormComponentMixin.ts";
const config = defineModel<FormDesignerComponents>("config");
</script>

<template>
  <CommonConfig v-model:config="config" />
  <el-form-item label="提示文字">
    <el-input v-model="config.props.placeholder" placeholder="自动获取当前登录人员所在部门名称" />
  </el-form-item>
  <el-form-item label="隐藏名称">
    <el-switch v-model="config.props.hideLabel" />
  </el-form-item>
  <el-form-item label="是否必填">
    <el-switch v-model="config.props.required" />
  </el-form-item>
  <el-form-item label="最大长度">
    <el-input-number v-model="config.props.maxlength" placeholder="可输入的最大长度" />
  </el-form-item>
</template>

<style lang="scss" scoped></style>
